package com.ruoyi.common.core.constant;

/**
 * 权限相关通用常量
 *
 * @author ruoyi
 */
public class SecurityConstants
{
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 微信unionid
     */
    public static final String WX_UNIONID = "unionid";

    /**
     * 微信OPEN id
     */
    public static final String WX_OPENID = "openid";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";

    public static final String WX_SESSION_KEY = "session_key";
    public static final String ADVATAR = "advatar";
    public static final String NICK_NAME = "nick_name";
    public static final String PHONE = "phone";
    public static final String IS_MAINTAINER = "is_maintainer";
    public static final String IS_ADV_MAINTAINER = "is_adv_maintainer";
    public static final String IS_ADV = "is_adv";
}
